
class Student(object):
    count = 0
    def __init__(self,name):
        Student.count+=1
        self.__name = name

stu1 = Student('小明')
stu2 = Student('小红')
stu3 = Student('小白')
stu4 = Student('小黑')
stu5 = Student('小亮')
print(Student.count)

stu5 = Student('小亮')
print(Student.count)